package com.example.administrator.uis

import android.os.AsyncTask
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import java.util.concurrent.ThreadFactory
import java.util.concurrent.ThreadPoolExecutor

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        var df = ThreadFactory { r -> Thread(r, "adsf") }
//        var sExecutor=ThreadPoolExecutor()

    }
    override fun onStart() {
        super.onStart()
        var a = 0
    }
}

 /*class ErAsyncTask : AsyncTask<String, Int, String>() {
    override fun onPreExecute() {
        super.onPreExecute()
        //TODO 开始瞬间
    }

    override fun doInBackground(vararg params: String?): String {
        publishProgress(33, 33)
        return ""
    }

    override fun onProgressUpdate(vararg values: Int?) {
        super.onProgressUpdate(*values)
        //TODO 进度
    }

    override fun onPostExecute(result: String?) {
        super.onPostExecute(result)
        //TODO 操作结束
    }

    fun onPostExecute() {

    }
}*/
